package com.remoter.monitor.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.fastjson.JSONObject;
import com.remoter.monitor.service.IMonitorService;

/**
 * @author			koko
 * @date 			2017-08-11 11:21:46
 * @description 	类功能说明
 */
@RestController
@RequestMapping("/api")
public class APIController {
	
	@Autowired
	private IMonitorService monitorService;
	
	@PostMapping("/servers.json")
	public JSONObject servers(){
		return this.monitorService.servers();
	}
	
	@PostMapping("/services.json")
	public JSONObject providers(){
		return this.monitorService.services();
	}
	
}